from flask  import Flask,request,session,g,current_app

app = Flask(__name__)

@app.route('/')
def Jacky():
    print(request) # request.__str__
    print(request.method) # request.__getattr__(key='method') 先去ctx中request, 再去request中获取method
    return "Jacky"

if __name__ == "__main__":
    app.__call__
    app.wsgi_app
    app.run()

"""
用户请求一旦到来:
  1. app.__call__
"""
